<template>
    <div class="main-content-wrap main-content-bg clearfix" v-wechat-title="VueTitle">
        
        <div class="w-1200 trend-main-wrap clearfix">
            <iframe :src="rebateUrl" scrolling="no" id="iframe" style="height:600px"></iframe>
        </div>

    </div>
</template>
<script>
export default {
    data() {
        return {
            VueTitle:'天天返利',
            rebateUrl: "",
        }
    },
    created() {
        if (localStorage.getItem("token")) {
            this.rebateUrl = "https://www.appbale.net/index.php?m=api&c=app&a=rebate&token=" + localStorage.getItem("token");
        } else {
            this.$Modal.warning({
                content: '您还未登录，请先登录',
                scrollable: true,
                onOk: () => {
                    var vm = this;
                    setTimeout(() => {
                        vm.$router.push({path:'/login'});
                    }, 1000);
                }
            });
        }
    },
    mounted() {
      
    },
    watch: {
        
    },
    computed: {
        
    },
    methods: {
       
    }
};
</script>
<style scoped>
.trend-main-wrap {
    padding: 35px;
    /* background: #f6f6f6; */
    border-radius: 8px;
}
#iframe {
    margin: 0 auto;
    display: block;
    padding: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
}
</style>


// WEBPACK FOOTER //
// src/components/article/rebate.vue